package com.gitee.fanx.retty.web;

import io.netty.handler.codec.http.HttpResponseStatus;

public class ExceptionResult {
	private int code;
	private String reason;
	private Object body;

	public ExceptionResult(HttpResponseStatus status, Object body) {
		this(status.code(), status.reasonPhrase(), body);
	}

	public ExceptionResult(int code, String reason, Object body) {
		this.code = code;
		this.reason = reason;
		this.body = body;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Object getBody() {
		return body;
	}

	public void setBody(Object body) {
		this.body = body;
	}
}
